@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

:root {
  --color-main: #F07505;
  --navigation-bar-text-color: #fff;
  --color-red: #ee453b;
  --color-green: #3bb73b;
  --color-light-green: #e2ffec;
  --color-blue: #38adff;
  --color-light-blue: #d0f7ff;
  --color-orange: #F07505;
  --color-light-orange: #f0c3a5;
  --color-white: #fff;
  --color-black: #333;
  --color-grey: #999;
  --color-dark-grey: #555;
  --color-light-grey: #ccc;
  --color-grey-f0f0f0: #f0f0f0;
  --color-grey-fafafa: #fafafa;
  --font-size-12: 12px;
  --font-size-14: 14px;
  --font-size-16: 16px;
  --font-size-17: 17px;
  --font-size-18: 18px;
  --font-size-20: 20px;
  --font-size-22: 22px;
  --font-size-24: 24px;
  --font-size-26: 26px;
  --font-size-28: 28px;
  --font-size-30: 30px;
  --font-size-32: 32px;
  --font-size-36: 36px;
}

.flexAlignItemCenter {
  align-items: center;
}

.flexJustifyCenter {
  justify-content: center;
}

.flexJustifyFlexEnd {
  justify-content: flex-end;
}

.flexJustifyBetween {
  justify-content: space-between;
}

.flexDirectionColumn {
  flex-direction: column;
}

.flex1 {
  flex: 1;
}

.space-10 {
  display: flex;
  height: 10px;
}

.space-15 {
  display: flex;
  height: 15px;
}

.space-20 {
  display: flex;
  height: 20px;
}

.space-30 {
  display: flex;
  height: 30px;
}

.space-50 {
  display: flex;
  height: 50px;
}

.space-80 {
  display: flex;
  height: 80px;
}

.space-100 {
  display: flex;
  height: 100px;
}

.color-main {
  color: var(--color-main);
}

.navigation-bar-text-color {
  color: var(--navigation-bar-text-color) !important;
}

.color-red {
  color: var(--color-red);
}

.color-green {
  color: var(--color-green);
}

.color-blue {
  color: var(--color-blue);
}

.color-orange {
  color: var(--color-orange);
}

.color-black {
  color: var(--color-black);
}

.color-white {
  color: var(--color-white);
}

.color-grey {
  color: var(--color-grey);
}

.color-dark-grey {
  color: var(--color-dark-grey);
}

.color-light-grey {
  color: var(--color-light-grey);
}

.font-size-12 {
  font-size: var(--font-size-12);
}

.font-size-14 {
  font-size: var(--font-size-14);
}

.font-size-16 {
  font-size: var(--font-size-16);
}

.font-size-17 {
  font-size: var(--font-size-17);
}

.font-size-18 {
  font-size: var(--font-size-18);
}

.font-size-20 {
  font-size: var(--font-size-20);
}

.font-size-22 {
  font-size: var(--font-size-22);
}

.font-size-24 {
  font-size: var(--font-size-24);
}

.font-size-26 {
  font-size: var(--font-size-26);
}

.font-size-28 {
  font-size: var(--font-size-28);
}

.font-size-30 {
  font-size: var(--font-size-30);
}

.font-size-32 {
  font-size: var(--font-size-32);
}

.font-size-36 {
  font-size: var(--font-size-36);
}

.cursor-pointer {
  cursor: pointer;
}

.text-decoration-underline {
  text-decoration: underline;
}

//滚动条样式
::-webkit-scrollbar { /*滚动条整体样式*/
  width: 4px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 6px;
}

::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px rgba(48, 65, 86, 0.2);
  background: rgba(186, 195, 202, 0.2);
}

::-webkit-scrollbar-track { /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 5px #fcfbfb;
  border-radius: 0;
  background: #fffef6;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.el-card__header {
  color: #303133;
}

.pointer {
  cursor: pointer;
}

.line {
  text-align: center;
}

.head-title {
  line-height: 45px;
  height: 45px;
  color: #444444;
  border-bottom: 1px solid #ececec;
}

.floatRight {
  float: right;
}

.flex {
  display: flex;
}

.flexAlignItemsCenter {
  align-items: center;
}

.flexJustifyContentCenter {
  justify-content: center;
}

.el-table__fixed, .el-table__fixed-right {
  height: 100% !important; //设置高优先，以覆盖内联样式
}

.el-table__fixed-right {
  z-index: 2;
  background: #fff;
}

.el-table--border::after {
  z-index: 9;
}

.el-table__fixed-footer-wrapper {
  z-index: 99;
}


.operate-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
}

.table-default {
  border-left: 1px #eee solid;
  border-top: 1px #409EFF solid;
  border-right: 0;
}

.table-default th {
  border: 0;
  border-right: 1px #eee solid;
  background-color: #f9f9f9;
}

.table-default .el-table td, .el-table th.is-leaf {
  border: 0;
  border-right: 1px #eee solid;
}

.table-default td {
  border: 0;
  border-right: 1px #eee solid;
}

.list-operate-menu {

  .item {
    margin-left: 10px;
    font-size: 20px;
    cursor: pointer;
  }

  .item:first-child {
    margin-left: 0;
  }
}

.list-operate-menu-more {
  display: flex;
  align-items: center;
  flex-direction: column;

  .item {
    width: 100%;
    margin-top: 10px;
    margin-left: 0;
  }

  .item:first-child {
    margin-top: 0;
  }
}


.clear-btn {
  color: #DCDFE6;
  margin-left: 5px;

  &:hover {
    color: #C0C4CC;
  }
}

.form-item-value {
  border-radius: 5px;
  border: 1px #DCDFE6 solid;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  cursor: pointer;

  &:hover {
    border-color: #C0C4CC;
  }
}

.form-item-value-disabled {
  background-color: #F5F7FA;
  border-color: #E4E7ED;
  color: #C0C4CC;
  cursor: not-allowed;

  &:hover {
    border-color: #E4E7ED;
  }
}

.margin-bottom-default {
  margin-bottom: 10px;
}

.margin-top-default {
  margin-top: 10px;
}

.margin-left-default {
  margin-left: 10px;
}

.margin-right-default {
  margin-right: 10px;
}

//.el-select, .el-input-number, .el-date-editor.el-input, .el-date-editor.el-input__inner {
//  width: 70%;
//}

.form-item-width {
  width: 70%;
}

.bottom-operate-button-div {
  position: fixed;
  width: 100vw;
  left: 0;
  bottom: 0;
  box-shadow: 0 -2px 2px rgba(0, 21, 41, 0.08);
  background-color: var(--color-white);
  padding: 5px 10px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-width-primary {
  width: 200px;
  font-size: 16px;
}

.statistics {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 14px;

  .statistics-item {
    margin-left: 10px;
  }

  .value {
    color: #F07505;
    font-weight: bold;
  }
}

.field-title {
  color: #999;
}

.el-message-box {
  width: auto;
  min-width: 30vw;
  max-width: 40vw;
}

.el-message-box__status {
  position: relative;
  font-size: 50px !important;
  height: 50px;
  padding-top: 15px;
}

.el-message-box__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.el-message-box {
  margin: 30px 0;
  text-align: center;
  padding: 0;
}

.el-message-box__title, .el-message-box__btns {
  text-align: center;
}

.el-message-box__btns {
  padding: 15px;

  .el-button {
    width: 120px;
  }
}

.el-message-box__message {
  padding-left: 12px !important;
}

.text-in-1-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.text-in-2-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}
